<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<tiles:insertDefinition name="baseTemplate">
    <tiles:putAttribute name="title">    
        <title>Оло ло</title>
    </tiles:putAttribute>
   <tiles:putAttribute name="body">
    <sec:authorize access="hasRole('ROLE_ADMIN')">
        <form action="register" method="get">
            <p><input type="submit" value="Зарегистрировать пользователя"></p>
        </form>

        <form action="editComponents" method="post">
            <p><input type="submit" value="Редактирование компонентов."></p>
        </form>

        <form action="editOffice" method="post">
            <p><input type="submit" value="Редактирование офисов."></p>
        </form>


    </sec:authorize>
        Hello World
        ${message}
    </tiles:putAttribute>
</tiles:insertDefinition>